package com.admin.core.mapper;

import com.admin.core.dto.TestDataScope;
import com.admin.core.dto.UserQueryDTO;
import com.admin.core.entity.SysRole;
import com.admin.core.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author sq-lan
 */
@Mapper
public interface UserMapper extends BaseMapper<SysUser> {

    /**
     * 列表
     *
     * @param entity 标准
     * @return {@link List}<{@link SysUser}>
     */
    List<SysUser> list(@Param("entity") UserQueryDTO entity);

    List<SysUser> test(@Param("entity") TestDataScope entity, String a, int b, SysRole role);

    /**
     * 更新
     *
     * @return int
     */
    int update();

}
